/*
* Copyright 2008-2023 dexian.vip. All rights reserved.
* Support: http://www.dexian.vip
* License: http://www.dexian.vip/license
*/

package ${graph.basePackage};

import cloud.tianzhu.base.entity.BaseEntityGraph;
import lombok.Builder;
import org.hibernate.graph.GraphSemantic;

/**
*  ${modelMap.entityComment!}实体图
*
* @author ${modelMap.author} ${modelMap.now}
*/
@Builder
// TODO 代码自动生成与${modelMap.now}，代码生成完成后，请删除该TODO语句
public class ${modelMap.simpleClassName}Graph extends BaseEntityGraph {

/**
* 实体图名称
*
* @return 实体图的名称，该名称通常定义在实体类的@NamedEntityGraph (name = "${graph.graphName!}")中
*/
@Override
public String getName () {
return "${graph.graphName!}";
}

/**
* 使用 GraphSemantic.LOAD或者 GraphSemantic.FETCH
*
* @return GraphSemantic
*/
@Override
public GraphSemantic getGraphSemantic () {
return GraphSemantic.FETCH;
}
}
